package top.timestreet.xmsk.timestreet.crawl;

import us.codecraft.webmagic.ResultItems;
import us.codecraft.webmagic.Task;
import us.codecraft.webmagic.pipeline.Pipeline;

public class ListPagePipeline implements Pipeline {

	@Override
	public void process(ResultItems resultItems, Task task) {
		System.out.println("进入了ListPagePipline方法");
		//Map<String, Object> all = resultItems.getAll();
		// 因为我们知道这个里ListPage的List集合，所以强转没问题
		/*
		 * List<ListPage> lists = (List<ListPage>) all.get("listPage"); for (ListPage
		 * listPage : lists) { System.out.println(listPage.toString()); }
		 */
	}

}
